<div *ngIf="!this.data.library" mat-dialog-title>
  <h1>Workflow Specification</h1>
</div>

<div *ngIf="this.data.library" mat-dialog-title>
  <h1>Library Specification</h1>
</div>

<div mat-dialog-content>
  <form [formGroup]="form">
    <formly-form [model]="model" [fields]="fields" [options]="options" [form]="form"></formly-form>
  </form>
</div>

<div mat-dialog-actions>
  <button [disabled]="form.invalid" (click)="onSubmit()" color="primary" mat-flat-button>Save</button>
  <button (click)="onNoClick()" mat-flat-button>Cancel</button>
</div>
